      1  /**

      2     A manager is a salaried employee who also receives a bonus.

      3  */

      4  public class Manager extends SalariedEmployee

      5  {

      6     private double weeklyBonus;

      7

      8     /**

      9        Constructs a manager with a given name, annual salary and weekly bonus.

     10        @param name the name of this employee

     11        @param salary the annual salary

     12        @param bonus the weekly bonus

     13      */

     14     public Manager(String name, double salary, double bonus)

     15     {

     16        super(name, salary);

     17        weeklyBonus = bonus;

     18     }

     19

     20     public double weeklyPay(int hoursWorked)

     21     {

     22        return super.weeklyPay(hoursWorked) + weeklyBonus;

     23     }

     24  }

     25

     26